using RBAC.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.PurchasingManagement.PurchaseOrders
{
    /// <summary>
    /// 采购订单信息
    /// </summary>
    [Table("PurchaseOrderInfo")]
    public class PurchaseOrderInfo:BaseEntity
    {

        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocCode { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public string BizType { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        public string Operatorer { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public string supplierId { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime docDate { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        public string docType { get; set; }

        /// <summary>
        /// 审批员
        /// </summary>
        private string auditor { get; set; }

        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime arrivalDate { get; set; }

        /// <summary>
        /// 单据状态（如草稿、已审批等）
        /// </summary>
        public string docStatus { get; set; }

        /// <summary>
        /// 采购部门
        /// </summary>
        public string purchaseDept { get; set; }

        /// <summary>
        /// 审批日期
        /// </summary>
        public DateTime auditDate { get; set; }

        /// <summary>
        /// 合同上传路径
        /// </summary>
        public string contractUpload { get; set; }

        /// <summary>
        /// 业务状态
        /// </summary>
        public string bizStatus { get; set; }

        /// <summary>
        /// 采购人员
        /// </summary>
        public string purchaser { get; set; }

        /// <summary>
        /// 用料需求说明
        /// </summary>
        public string materialDemand { get; set; }

        /// <summary>
        /// 合同号
        /// </summary>
        public string contractNo { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 关联的采购物料明细列表
        /// </summary>
        public List<int> purchaseDetailsId;

    }
}
